
import requests
from bs4 import BeautifulSoup

url = 'https://ssr1.scrape.center/'
res = requests.get(url)

print(res.status_code)

html = res.text

soup = BeautifulSoup(html,'html.parser')
# 书名
for i in soup.find_all('h2',class_='m-b-sm'):
    print(i.string)

# 剧情
for i in soup.find_all('button'):
    print(i.span.string)
# 中国大陆和时间
for i in soup.find_all('div',class_='m-v-sm info'):
    print(i.span.string)

# 评分
for i in soup.find_all('p',class_='score m-t-md m-b-n-sm'):
    print(i.string)

